# Copyleft Ruiming Guo 2021

# CMake lowest version requirement
cmake_minimum_required(VERSION 3.5.1)

# Project information
project(main)

# Set CXX standard
set(CMAKE_CXX_STANDARD 17)

# Set compile flags
set(CMAKE_CXX_FLAGS_DEBUG "-fPIC -O0 -g -Wall")
set(CMAKE_CXX_FLAGS_RELEASE "-fPIC -O2 -Wall")

# Headers path

include_directories(
    $ENV{HOME}/Ascend/ascend-toolkit/5.0.2.alpha003/arm64-linux/acllib/include/
)

# Lib path

link_directories(
    $ENV{HOME}/Ascend/ascend-toolkit/5.0.2.alpha003/arm64-linux/acllib/lib64/
)

# Executable

add_executable(
    main
    main.cpp
)

# Target link libraries

target_link_libraries(
    main ascendcl
)
